﻿using System.Windows;
using ItemsViewerDemo.ViewModels;

namespace ItemsViewerDemo
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        /// <summary>
        ///  Initializes a new instance of the MainWindow class.
        /// </summary>
        public MainWindow()
        {
            InitializeComponent();
            this.DataContext = new MainViewModel();
        }

        /// <summary>
        /// Change Focus when Mouse up.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The MouseButtonEventArgs.</param>
        private void SliderSizePreviewMouseUp(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            this.itemViewerControl.Focus();
        }
    }
}
